<div class="col-md-8 processes_list" id="processes_list">
                {% for host in process_host_list %}

                    <div class="panel {% cycle 'panel-success ' 'panel-info' %} has_shadow">
                        <div class="panel-heading text-center">
                            <h3 class="panel-title ">主机: {{ host }}</h3>
                        </div>
                        <div class="panel-body">
                            <div class="table-responsive">
                                <table class="table ">
                                    <thead>
                                    <tr>
                                        <th>进程名</th>
                                        <th>ip</th>
                                        <th>进程状态</th>
                                        <th>启动时间</th>
                                        <th>操作</th>

                                    </tr>
                                    </thead>
                                    <tbody>
                                    {% for process in host.processes.all %}
                                        <tr>
                                            <td> {{ process.name }}</td>
                                              <td>{{ process.ip }}</td>
                                            {% if process.detail.statename == 'RUNNING' %}

                                                <td class="text-success "><span
                                                        class="label label-success">{{ process.detail.statename }}</span>
                                                </td>
                                            {% else %}
                                                <td class="text-warning"><span
                                                        class="label label-warning ">{{ process.detail.statename }}</span>
                                                </td>
                                            {% endif %}

                                            <td>{{ process.detail.description }}</td>
                                            <td ip="{{ process.ip }}">
                                                {% if process.detail.statename == 'RUNNING' %}
                                                    <button class="btn  btn-danger doaction_btn stop"  doaction="stop">停止</button>
                                                {% else %}
                                                    <button class="btn  btn-success  doaction_btn start"  doaction="start">启动</button>
                                                {% endif %}
                                                <button class="btn  btn-info doaction_btn restart" doaction="restart">重启</button>
                                                <button class="btn  btn-warning refresh" >刷新</button>
                                                <button class="btn  btn-primary detail">详情</button>
                                            </td>
                                        </tr>
                                    {% endfor %}
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>

                {% endfor %}
            </div>